d = {"name":"alex","age":"18","hobbies":"大堡礁"}
l = ["Dagou","小猫","大灰狼"]

# 传递的是字典，列表时 可以进行修改(不同于字符串)
def change_data(info,list):
    info["hobbies"] = "学习"
    list.append("xian")
    print(info,list)

change_data(d,l)